//导入request.js请求工具
import request from '@/utils/request.js'

//商品列表接口
export const goodsListService = () => {
    return request.get('/goods/list')
}

//商品详情接口
export const goodsDetailService = (id) => {
    return request.get('/goods/detail?id=' + id)
}

export const goodsSearchService = (keyword) => {
    return request.get('/goods/search?keyword=' + keyword)
}